package com.sixbing.demo.base;


import com.company.module.net.HttpValues;
import com.company.module.net.bean.BaseBean;
import com.sixbing.demo.bean.AppVersionNetBean;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * @author sixbing
 * @date 2018/10/29 14:59
 * description :
 */
public interface BaseHttpApi {
    /************************  用户相关  *********************/
    //登录
    @Headers({"CHANGE_URL_FLAG: " + HttpValues.BASE_URL_LOCAL_key}) // 加上 CHANGE_URL_FLAG header
    @POST(HttpValues.app_version_check)
    Observable<BaseBean<AppVersionNetBean>> checkUpdate(@Body RequestBody body);

}
